export const menusAPI = () =>
  new Promise((resolve, reject) => {
    resolve({
      code: 200,
      msg: "请求成功",
      data: [
        {
          nonRenderChild: true,
          path: "/dashboard",
          meta: {
            title: "主页",
            icon: "home",
            affix: true,
            index: 0,
          },
          redirect: {
            name: "dashboard",
          },
          component: "Layout",
          children: [
            {
              name: "dashboard",
              path: "/dashboard",
              component: "dashboard/Index",
              meta: {
                title: "主页",
                index: 0,
              },
            },
            {
              name: "individualCenter",
              path: "/individualCenter",
              component: "individualCenter/Index",
              meta: {
                icon: "",
                title: "个人中心",
                noTagsView: true,
              },
            },
          ],
        },
        {
          path: "/crm",
          component: "Layout",
          redirect: "/crm/advertising",
          meta: {
            icon: "all-application",
            title: "CRM管理",
          },
          children: [
            {
              path: "/crm/advertising",
              component: "crm/advertising/Index",
              name: "advertising",
              meta: {
                icon: "",
                title: "广告管理",
                index: 1,
              },
            },
            {
              path: "/crm/news",
              component: "crm/news/Index",
              name: "news",
              meta: {
                icon: "",
                title: "新闻管理",
                index: 2,
              },
            },
            {
              path: "/crm/laborSpace",
              component: "crm/laborSpace/Index",
              name: "laborSpace",
              meta: {
                icon: "",
                title: "劳动空间",
                index: 3,
              },
            },
            // {
            //   path: "/crm/laborSpace/releaseRecord",
            //   component: "crm/laborSpace/releaseRecord/index",
            //   name: "releaseRecord",
            //   meta: {
            //     icon: "",
            //     title: "发布记录",
            //     subheading: "劳动空间的发布记录",
            //     // isReveal: true,
            //   },
            // },
            {
              path: "/crm/H5",
              component: "crm/H5/Index",
              name: "newsType",
              meta: {
                icon: "",
                title: "H5管理",
                index: 4,
              },
            },
          ],
        },
      ],
    });
  });
